//
//  Triangle.m
//  Demo0005
//
//  Created by zTercel on 12-12-31.
//  Copyright (c) 2012年 zTercel. All rights reserved.
//

#import "Triangle.h"

@implementation Triangle
@synthesize aSide;
@synthesize bSide;
@synthesize cSide;
@synthesize hight;

-(void) print
{
    NSLog(@"I am a Triangle");
    
    [super print];
}
-(void) setSide: (UINT) a bSide: (UINT) b cSide: (UINT) c
{
    aSide   = a;
    bSide   = b;
    cSide   = c;
}

-(UINT) area
{
    return (hight * cSide);
}

-(UINT) perimeter
{
    return (aSide + bSide + cSide);
}

@end
